


1. tepsX needs to issue 'quit" to tepsBarcode
	a. after user cancel out message
	b. match failed message

	c. also when user says do not delete pc-card - we need to give some sort of warning to give them 
		one more change to delete - otherwise - they need to delete everything manually!!!!!! ie both barcode device and pc-card device


2. if tepsX receives the followingList  BEFORE it gets the desired   kTepsBarcodeEventID_matchOkay
	maybe it should treat it like user aborted or something crashed???
	handleEventsBeforeGettingMatchedList()
	{
		case	kTepsBarcodeEventID_matchFail		'err1'	// failed to match barcodeIDs with imageList
			DisplayNormalMessage ( "Unable to Match Barcode IDs with PC-Card Images???");
			DisplayNormalMessage ( "Please Retry start sitting again");
			closeOutTepsWindow();
			IssueToTepsBarcodeToQUIT ();
			break;
		case	kTepsBarcodeEventID_matchBadSource	'err3'	// something bad about the tepsTempFolder name or contents
			DisplayNormalMessage ( "Folder Path is empty or contains bad characters???");
			DisplayNormalMessage ( "call for tech support??");
			closeOutTepsWindow();
			IssueToTepsBarcodeToQUIT ();
			break;
		case	kTepsBarcodeEventID_userAbort		'abrt'	// user aborted or decide to cancel
			DisplayNormalMessage ( "process aborted by user");
			DisplayNormalMessage ( "Please Retry start sitting again");
			closeOutTepsWindow();
			IssueToTepsBarcodeToQUIT ();
			break;
		case	kTepsBarcodeEventID_appQuit			'qend'	// application is quitting
			DisplayNormalMessage ( "The Barcode Matching Has Unexpectedly Quit???");
			DisplayNormalMessage ( "Please Retry start sitting again");
			DisplayNormalMessage ( "call for tech support??");
			closeOutTepsWindow();
			break;
		case	kTepsBarcodeEventID_DeviceNotFound	'err0'	// Barcode Device Missing or NOT Found
			DisplayNormalMessage ( "Unable to Find Your Physical Barcode Device???");
			DisplayNormalMessage ( "Please Retry start sitting again");
			DisplayNormalMessage ( "call for tech support??");
			closeOutTepsWindow();
			IssueToTepsBarcodeToQUIT ();
			break;
	}
 

3. After entering the Operations Window and When ready to Display "Delete Images On PC-Card AND Empty Out the Barcode Scanner??"

	if ( doDelete )
	{
		IssueToTepsBarcode (kTepsBarcodeEventID_OkayToDelete);
		bool didDeletePCCard = doDeletePCCardProcess();
		if ( didDeletePCCard and tepsBarcodeResponded==kTepsBarcodeEventID_eraseOkay )
		{
			DisplayNormalMessage ( "Great - Everything is deleted" );
		}
		else
		{
			if ( !didDeletePCCard )
			{
				DisplayNormalMessage ( "Problem with deleting pc" );
			}
			if ( tepsBarcodeResponded==kTepsBarcodeEventID_eraseFail )
			{
				DisplayNormalMessage ( "Problem with deleting barcode scanner - need to delete manually" );
			}
			if ( tepsBarcodeResponded==kTepsBarcodeEventID_appQuit )
			{
				DisplayNormalMessage ( "Deleting Barcode Process Unexpectedly Quit???!" );
			}

			IssueToTepsBarcodeToQUIT ();

		}
		
		
	}

	else
	{
		DisplayNormalMessage ( "WARN the User - ARE YOU SURE - YOU MUST MAKE SURE BARCODE and PC-CARD are BOTH EMPTY before shooting again" );
		DisplayNormalMessage ( Are you sure - delete and will take care myself manually!)
		if ( delete ) goto step 3 again
		else 
		{
			IssueToTepsBarcodeToQUIT ();
			returnToMainMenuProcess() (are you copying images to the master images server - if on)
		}
	}



